<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>
<html>
<head>
    <title>主页</title>
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/scripts/ext-1.1/resources/css/reset-min.css" />
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/scripts/ext-1.1/resources/welcome.css"/>
	<jsp:include page="/common/inc/select.jsp" />
</head>
<body>
	<%
	whf.framework.security.UserContext userContext = whf.framework.web.WebContextHolder.getWebContext(request).getUserContext();
	%>
    <div class="col">
        <div class="block">
			<h3 class="block-title">待办工作(今天的)</h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" pageSize="10" displayStyle="table" editable="false" useStrutsForm="true" view="ITSM-WORKITEM-TODAY" caption="none"
					wrapClass="whf.workflow.wrapper.WorkitemWrapperForMyWorkitem"
					rowDecorator="whf.workflow.decorator.WorkitemRowDecorator">
				</framework:table>
			</div>
        </div>
        <div class="block">
			<h3 class="block-title">待办工作(逾期的)</h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" pageSize="10" displayStyle="table" editable="false" useStrutsForm="true" view="ITSM-WORKITEM-EXPIRED" caption="none"
					wrapClass="whf.workflow.wrapper.WorkitemWrapperForMyWorkitem"
					rowDecorator="whf.workflow.decorator.WorkitemRowDecorator">
				</framework:table>
			</div>
        </div>
        <div class="block">
			<h3 class="block-title">待办工作(未处理的)</h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" pageSize="10" displayStyle="table" editable="false" useStrutsForm="true" view="ITSM-WORKITEM-WAITING" caption="none"
					wrapClass="whf.workflow.wrapper.WorkitemWrapperForMyWorkitem"
					rowDecorator="whf.workflow.decorator.WorkitemRowDecorator">
				</framework:table>
			</div>
        </div>
    </div>
    <div class="col">
        <div class="block">
			<h3 class="block-title">公告通知</h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" displayStyle="table" editable="false" useStrutsForm="true" view="ITSM-BULLETIN-MINE" caption="none" 
					queryString="t.id in(select t1.bulletin.id from whf.itsm.bulletin.entity.Publish t1 where t1.dept=?) and ? between t.effectiveBegin and t.effectiveEnd" 
					queryParameters="<%= new Object[]{userContext.getUser().getDept(), new java.sql.Date(System.currentTimeMillis())} %>">
				</framework:table>
			</div>
        </div>
        <div class="block">
			<h3 class="block-title">系统短信 <a href="#">+</a></h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" displayStyle="table" editable="false" useStrutsForm="true" view="ITSM-SMS-MINE" caption="none" 
					queryString="t.receiver=? order by t.state desc, t.name" 
					queryParameters="<%= new Object[]{userContext.getUser()} %>">
				</framework:table>
			</div>
        </div>
		<div class="block">
			<h3 class="block-title">我的调查</h3>
			<div class="block-body">
				<framework:table pkStyle="" navPosition="none" displayStyle="table" editable="false" useStrutsForm="true" view="COMMON_USER_SELECTION" caption="none">
				</framework:table>
			</div>
        </div>
    </div>
</body>
</html>